package com.zbkj.crmeb.store.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zbkj.crmeb.enums.HomeStyleEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 首页个性化配置
 * @Description: 
 * @author daigb
 * @date 2021-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_custom_share")
@ApiModel(value="CustomShare对象", description="自定义分项")
public class CustomShare implements Serializable {
    private static final long serialVersionUID = 5071900249288082654L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @ApiModelProperty(value = "商户id")
    @NotNull
    private Integer merId;
    
    @ApiModelProperty(value = "是否使用")
    @NotNull(message = "是否使用不能为空")
    private Boolean status;

    @ApiModelProperty(value = "标题")
    @NotNull(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "摘要")
    //@NotNull(message = "摘要不能为空")
    private String synopsis;

    @ApiModelProperty(value = "图片")
    @NotNull(message = "图片不能为空")
    private String img;

    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
}